## Installing Windows QFE for Windows 2008 only, not R2

$WindowsVersion  = $(get-wmiobject -class "Win32_OperatingSystem" -namespace "root\CIMV2").Version

if ($WindowsVersion -like "*6.0*"){

	Write-Host -ForegroundColor Yellow "Office: Installing Required Hotfix KB971831"

	$Hotfix = Get-WmiObject -class "Win32_QuickFixEngineering" | where { $_.HotfixID -eq "KB971831" }

	if ($Hotfix -eq $null){
	& "\\winsehotfix\hotfixes\Windows6.0\SP2\KB971831\V1.000\free\NEU\x64\Windows6.0-KB971831-x64.msu" /quiet /norestart
	sleep 15
	Write-Host -ForegroundColor Yellow "Office: Installing Required Hotfix KB971831. COMPLETED"
	}else {
	Write-Host -ForegroundColor Gray "Office: Installing Required Hotfix KB971831. Already Installed Skipping"
	}
}
